#if !defined(__APP_MQTT)
#define __APP_MQTT
#define MQTT_BROKER_URI "ws://192.168.42.23:1883"
#define MQTT_CLIENT_ID "fe0c50f6-24a1-11f0-a891-eb351176a04d"
#define MQTT_SUBSCRIBE_TOPIC "web_to_gateway"
#define MQTT_PUBLISH_TOPIC "gateway_to_web"
#define MQTT_QOS 1


/**
 * @brief 初始化mqtt客户端
 */
int  app_mqtt_init();

/**
 * @brief 发布mqtt消息
 */
int app_mqtt_publish( char *payload);


/**
 * @brief 注册接收数据的回调函数
 */
int app_mqtt_register_recv_callback( int  (*callback)(char *));


/**
 * @brief 销毁mqtt
 */
void app_mqtt_destroy();


#endif // __APP_MQTT
